package com.demo.morning;

/**
 * @ClassName 实现Runnable接口
 * @Description TODO
 * @Author tianqinglong
 * @Date 9:26 2022/7/13
 * @Version 1.0
 **/
public class 实现Runnable接口  implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("-------------");
        }
    }
    // 创建线程对象，通过线程对象来开启我们的线程，代理
    //Thread thread=new Thread();
    //thread.start();
    public static void main(String[] args) {
        实现Runnable接口 t = new 实现Runnable接口();
        new Thread(t).start();
        for (int i = 0; i < 1000; i++) {
            System.out.println("++++++++++++");
        }
    }
}
